package com.youlai.boot.system.converter;

import org.mapstruct.Mapper;
import com.youlai.boot.system.model.entity.product;
import com.youlai.boot.system.model.form.productForm;

/**
 * 商品对象转换器
 *
 * @author youlaitech
 * @since 2024-10-22 16:26
 */
@Mapper(componentModel = "spring")
public interface ProductConverter {

    productForm toForm(product entity);

    product toEntity(productForm formData);
}